const TokenKey = 'token';

// 认证令牌
export function getToken() {
	console.log(uni.getStorageSync(TokenKey),'TokenKey');
	return uni.getStorageSync(TokenKey)
}

export function setToken(token) {
	return uni.setStorageSync(TokenKey, token)
}

export function removeToken() {
	return uni.removeStorageSync(TokenKey)
}

export function setUser(data){
	return uni.setStorageSync('user',data)
}
export function getUser(){
	return uni.getStorageSync('user')
}
export function removetUser(){
	return uni.removeStorageSync('user')
}